package org.jks.util;

import org.jks.request.model.Ids;

public class RoleUtil {
	public static boolean canDelete(Ids ids){
		if(ids == null || ids.getIds().length == 0){
			return false;
		}
		for(long id : ids.getIds()){
			if(!canDelete(id)){
				return false;
			}
		}
		return true;
	}
	
	public static boolean canDelete(long id){
		if(id <0 || id > 8){
			return true;
		}
		return false;
	}
}
